<?php

abstract class Static_Backend implements Resource_Backend_Interface
{
    
    /**
    * Return module available options.
    * 
    * @return array
    */
    static public function options() 
    {
        $query = '
            SELECT 
                   `c`.`id`,  
                   `c`.`title`
              FROM 
                   `system_contents` `c` 
              JOIN 
                   `static` `s` ON `s`.`contents_id` = `c`.`id`
          ORDER BY 
                   `c`.`title` ASC
            ';
        return database::fetchPairs($query);
    }
    
    /**
    * Return module mandatory block(s).
    * 
    */
    static public function blocks() 
    {
        return array();
    }
    
}